package com.neu.flashmall.product.feign;

import com.neu.common.to.AuthorityCheckTo;
import com.neu.common.utils.Result;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;

import java.io.IOException;

@FeignClient(name = "flashmall-ms")
public interface MSFeignService {

    @PostMapping(value = "/authority/toCheck")
    public Result authorityCheck(@RequestBody AuthorityCheckTo authorityCheckTo) throws IOException;

}
